(report-emacs-bug): Remove the last number of `emacs-version', use the
authorMichaël Cadilhac <michael.cadilhac@lrde.org>
Fri, 17 Aug 2007 10:10:00 +0000 (10:10 +0000)
committerMichaël Cadilhac <michael.cadilhac@lrde.org>
Fri, 17 Aug 2007 10:10:00 +0000 (10:10 +0000)
topic prefix ``version; ''.

lisp/mail/emacsbug.el

index 8a11dc90cc43ccf739e64a100ce47ce2e5c5dde0..89ac6dea0bb7180c655d7847791124e2e1e0e023 100644 (file)
@@ -75,7 +75,8 @@ Prompts for bug subject.  Leaves you in a mail buffer."
   (interactive (reverse (list (recent-keys) (read-string "Bug Subject: "))))
   ;; The syntax `version;' is preferred to `[version]' because the
   ;; latter could be mistakenly stripped by mailing software.
-  (setq topic (concat "Bug: " emacs-version "; " topic))
+  (when (string-match "^\\(\\([.0-9]+\\)*\\)\\.[0-9]+$" emacs-version)
+    (setq topic (concat (match-string 1 emacs-version) "; " topic)))
   ;; If there are four numbers in emacs-version, this is a pretest
   ;; version.
   (let* ((pretest-p (string-match "\\..*\\..*\\." emacs-version))